package cn.hdustea.shopNavigation.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.baidu.mapapi.model.LatLng;

public class IndoorPlanBean implements Parcelable {
    private String poiId;
    private LatLng location;
    private String floorId;
    private String name;

    public IndoorPlanBean(String poiId, LatLng location, String floorId, String name) {
        this.poiId = poiId;
        this.location = location;
        this.floorId = floorId;
        this.name = name;
    }

    protected IndoorPlanBean(Parcel in) {
        poiId = in.readString();
        location = in.readParcelable(LatLng.class.getClassLoader());
        floorId = in.readString();
        name = in.readString();
    }

    public static final Creator<IndoorPlanBean> CREATOR = new Creator<IndoorPlanBean>() {
        @Override
        public IndoorPlanBean createFromParcel(Parcel in) {
            return new IndoorPlanBean(in);
        }

        @Override
        public IndoorPlanBean[] newArray(int size) {
            return new IndoorPlanBean[size];
        }
    };

    public String getPoiId() {
        return poiId;
    }

    public void setPoiId(String poiId) {
        this.poiId = poiId;
    }

    public LatLng getLocation() {
        return location;
    }

    public void setLocation(LatLng location) {
        this.location = location;
    }

    public String getFloorId() {
        return floorId;
    }

    public void setFloorId(String floorId) {
        this.floorId = floorId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(poiId);
        dest.writeParcelable(location, 0);
        dest.writeString(floorId);
        dest.writeString(name);
    }
}
